package com.ruoyi.system.wnjk.domain.po;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户账号对象 wnjk_user
 *
 * @author ruoyi
 * @date 2025-03-07
 */
public class WnjkUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long id;

    /** 用户名（唯一） */
    @Excel(name = "用户名", readConverterExp = "唯=一")
    private String username;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String nickname;

    /** 用户头像URL */
    @Excel(name = "用户头像URL")
    private String avatar;

    /** 性别 */
    @Excel(name = "性别")
    private String gender;

    /** 手机号（唯一） */
    @Excel(name = "手机号", readConverterExp = "唯=一")
    private String phone;

    /** 密码（加密存储） */
    @Excel(name = "密码", readConverterExp = "加=密存储")
    private String password;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthDate;

    /** 体重（kg） */
    @Excel(name = "体重", readConverterExp = "k=g")
    private BigDecimal weight;

    /** 用户行业 */
    @Excel(name = "用户行业")
    private String industry;

    /** 所在地区 */
    @Excel(name = "所在地区")
    private String region;

    /** 所属部门，如 运营部、财务部 */
    @Excel(name = "所属部门，如 运营部、财务部")
    private String department;

    /** 账户余额（元） */
    @Excel(name = "账户余额", readConverterExp = "元=")
    private BigDecimal accountBalance;

    /** 会员等级，如普通会员、钻石会员 */
    @Excel(name = "会员等级，如普通会员、钻石会员")
    private String membershipLevel;

    /** 是否启用（1:启用, 0:禁用） */
    @Excel(name = "是否启用", readConverterExp = "1=:启用,,0=:禁用")
    private Integer isActive;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registrationDate;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getUsername()
    {
        return username;
    }
    public void setNickname(String nickname)
    {
        this.nickname = nickname;
    }

    public String getNickname()
    {
        return nickname;
    }
    public void setAvatar(String avatar)
    {
        this.avatar = avatar;
    }

    public String getAvatar()
    {
        return avatar;
    }
    public void setGender(String gender)
    {
        this.gender = gender;
    }

    public String getGender()
    {
        return gender;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getPassword()
    {
        return password;
    }
    public void setBirthDate(Date birthDate)
    {
        this.birthDate = birthDate;
    }

    public Date getBirthDate()
    {
        return birthDate;
    }
    public void setWeight(BigDecimal weight)
    {
        this.weight = weight;
    }

    public BigDecimal getWeight()
    {
        return weight;
    }
    public void setIndustry(String industry)
    {
        this.industry = industry;
    }

    public String getIndustry()
    {
        return industry;
    }
    public void setRegion(String region)
    {
        this.region = region;
    }

    public String getRegion()
    {
        return region;
    }
    public void setDepartment(String department)
    {
        this.department = department;
    }

    public String getDepartment()
    {
        return department;
    }
    public void setAccountBalance(BigDecimal accountBalance)
    {
        this.accountBalance = accountBalance;
    }

    public BigDecimal getAccountBalance()
    {
        return accountBalance;
    }
    public void setMembershipLevel(String membershipLevel)
    {
        this.membershipLevel = membershipLevel;
    }

    public String getMembershipLevel()
    {
        return membershipLevel;
    }
    public void setIsActive(Integer isActive)
    {
        this.isActive = isActive;
    }

    public Integer getIsActive()
    {
        return isActive;
    }
    public void setRegistrationDate(Date registrationDate)
    {
        this.registrationDate = registrationDate;
    }

    public Date getRegistrationDate()
    {
        return registrationDate;
    }
    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt()
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("nickname", getNickname())
            .append("avatar", getAvatar())
            .append("gender", getGender())
            .append("phone", getPhone())
            .append("password", getPassword())
            .append("birthDate", getBirthDate())
            .append("weight", getWeight())
            .append("industry", getIndustry())
            .append("region", getRegion())
            .append("department", getDepartment())
            .append("accountBalance", getAccountBalance())
            .append("membershipLevel", getMembershipLevel())
            .append("isActive", getIsActive())
            .append("registrationDate", getRegistrationDate())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
